package com.aipp.mall.h5.domain.entity;

import com.aipp.mall.common.anno.Note;
import com.aipp.mall.common.model.BaseAudit;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * 购物车对象 ums_member_cart
 *
 * @author zcc
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("ums_member_cart")
public class MemberCart extends BaseAudit implements Serializable {

    @Serial
    private static final long serialVersionUID = 5212952332025617059L;

    private Long id;

    @Note(name = "0->失效；1->有效")
    private Integer status;

    @Note(name = "用户ID")
    private Long memberId;

    @Note(name = "商品ID")
    private Long productId;

    @Note(name = "展示图片")
    private String pic;

    @Note(name = "SKU ID")
    private Long skuId;

    @Note(name = "PRODUCT_NAME")
    private String productName;

    @Note(name = "商品属性")
    private String spData;

    @Note(name = "商品数量")
    private Integer quantity;

}
